﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/eSecureMaster.master" AutoEventWireup="true"
    CodeBehind="UserPermissionForm.aspx.cs" Inherits="Eassets.UI.Secure.UserPermissionForm" %>

<%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="User Permission"></asp:Label>
    </div>
    <table width="100%" height="5px">
        <tbody>
            <tr>
                <td align="right">
                    <osm:FlashMessage ID="FlashMessage1" runat="server" />
                    &nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelSecurityGroup" runat="server" Text="Security Group" CssClass="legendlabel_size2"></asp:Label>
                    <asp:DropDownList ID="dropDownListSecurityGroup" runat="server" CssClass="select"
                        AutoPostBack="true" OnSelectedIndexChanged="dropDownListSecurityGroup_SelectedIndexChanged"
                        AppendDataBoundItems="true">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="labelSecurityGroupMandatory" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                </div>
            </li>
            <li>
                <br />
            </li>
            <li>
                <div class="formfield">
                    <table width="100%">
                        <tr>
                            <td align="center" valign="top">
                                <asp:GridView ID="gridViewAllStakeholders" runat="server" Caption="All Stakeholders"
                                    CssClass="ColStyle" Width="250px" EmptyDataText="No data to display" AutoGenerateColumns="false"
                                    OnRowCreated="gridViewAllStakeholders_RowCreated" OnSelectedIndexChanged="gridViewAllStakeholders_SelectedIndexChanged">
                                    <RowStyle CssClass="RowStyle" />
                                    <AlternatingRowStyle CssClass="AltRowStyle" />
                                    <HeaderStyle CssClass="GridHeader" />
                                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:CheckBox runat="server" ID="checkBoxHeader" AutoPostBack="true" OnCheckedChanged="checkBoxHeader_CheckedChanged" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" ID="checkBoxItem" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="EmployeeId" HeaderText="EmployeeId" />
                                        <asp:BoundField DataField="EmployeeName" HeaderText="EmployeeName" />
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="labelEmptyGridText" runat="server" Text="No data to display"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                            <td align="center" valign="middle">
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <asp:Button ID="buttonAddRight" runat="server" Text=">" CssClass="button_normal"
                                                OnClick="buttonAddRight_Click" />
                                        </div>
                                    </li>
                                    <li>
                                        <div class="formfield">
                                            <asp:Button ID="buttonRemoveLeft" runat="server" Text="<" CssClass="button_normal"
                                                OnClick="buttonRemoveLeft_Click" />
                                        </div>
                                    </li>
                                </ul>
                            </td>
                            <td align="center" valign="top">
                                <asp:GridView ID="gridViewMappedStakeholders" runat="server" Caption="Assigned Stakeholders"
                                    CssClass="ColStyle" Width="250px" EmptyDataText="No data to display" AutoGenerateColumns="false"
                                    OnRowCreated="gridViewMappedStakeholders_RowCreated">
                                    <RowStyle CssClass="RowStyle" />
                                    <AlternatingRowStyle CssClass="AltRowStyle" />
                                    <HeaderStyle CssClass="GridHeader" />
                                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:CheckBox runat="server" ID="checkBoxHeader" AutoPostBack="true" OnCheckedChanged="checkBoxHeader_CheckedChanged" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" ID="checkBoxItem" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="EmployeeId" HeaderText="EmployeeId" />
                                        <asp:BoundField DataField="EmployeeName" HeaderText="EmployeeName" />
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="labelEmptyGridText" runat="server" Text="No data to display"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
            <li>
                <br />
            </li>
            <li>
                <br />
            </li>
            <li>
                <div class="buttonlist4">
                    <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="button_normal" />
                    <asp:Button ID="buttonCancel" runat="server" Text="Cancel" CssClass="button_normal" />
                </div>
            </li>
        </ul>
    </fieldset>
</asp:Content>
